home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / 4files16.zip / 4FILES.DEF < prev    next >
Text File  |  1991-03-20  |  8KB  |  147 lines

  1. ;  ╔══════════════════════════════════════════════════════════════════════╗
  2. ;  ║                                                                      ║
  3. ;  ║                       LOGITECH Mouse Support                         ║
  4. ;  ║                                                                      ║
  5. ;  ║                                for                                   ║
  6. ;  ║                                                                      ║
  7. ;  ║                           === 4FILES ===                             ║
  8. ;  ║                                                                      ║
  9. ;  ║                      by Larry Edwards  3/17/91                       ║
  10. ;  ║                                                                      ║
  11. ;  ╟──────────────────────────────────────────────────────────────────────╢
  12. ;  ║  File #1:  4FILES.DEF (this file) contains:  1) FULL DOCUMENTATION.  ║
  13. ;  ║                                              2) SOURCE CODE.         ║
  14. ;  ║                                                                      ║
  15. ;  ║  File #2:  4FILES.MNU is File #1 compiled, READY FOR USE.            ║
  16. ;  ║                                                                      ║
  17. ;  ║  REQUIRES: Logitech 3-button mouse.                                  ║
  18. ;  ║                                                                      ║
  19. ;  ╚══════════════════════════════════════════════════════════════════════╝
  20.  
  21. ; OVERVIEW OF MOUSE SUPPORT FEATURES
  22. ; ==================================
  23. ;     This mouse program was written for a 4FILES user who commented that
  24. ;if mouse support were added, 4FILES would be "beyond perfection".  That is a
  25. ;bit of hyperbole, since other nice features also remain to be added in Version
  26. ;2.0, but the flattery prompted me to come up with this external mouse support
  27. ;for immediate use.
  28.  
  29. ;    4FILES' powerful navigation & browse keys, <G+> and <G->, are mapped to the
  30. ;first two mouse buttons (counting left to right).  The third button is <ESC>, 
  31. ;and it facilitates rapid browsing of multiple files by allowing a quick return 
  32. ;from your browse utility.  This button mapping is very efficient both for a 
  33. ;quick inspection of a parent or subdirectory, and for browsing files.
  34.  
  35. ;    Alternatively, you may want to modify the source code (below) to map the
  36. ;drive-change key (<*> or <SCROLL>) to Button-1, with the <G+> and <G-> 
  37. ;functions moved to the other buttons.  Use the value 162 in the appropriate 
  38. ;'type' directive below for the drive-change funtion.
  39.  
  40. ;    With <ESC> mapped to Button-3, I strongly advise using the /X command
  41. ;line switch, which prevents <ESC> from terminating 4FILES.  <^ESC> will then
  42. ;allow you to quit (to the original directory).  Without /X set, you will often
  43. ;quit 4FILES unintentionally when returning from the browser.  If /X is set,
  44. ;hitting <ESC> or <BUTTON-3> will display a reminder to use <^ESC>.  This
  45. ;message can of course be easily cleard by pressing <BUTTON-3>.
  46.  
  47. ;    I highly recommend giving the mouse layout as provided here a good try,
  48. ;(with or without /X) before making changes, since I feel it is very likely
  49. ;the most powerful arrangement possible.  You may disagree, if you have a better
  50. ;idea, your comments are welcome.  4F_LTECH.ZIP is hereby provided as part of
  51. ;the 4FILES package, and is free to anyone evaluating 4FILES and to registered
  52. ;registered 4FILES users.
  53.  
  54.  
  55. ;MOUSE FUNCTIONS PROVIDED:  ("Buttons-12" means buttons 1 & 2 pressed together.)
  56. ;========================
  57.  
  58. ;            <Button-1>     CD, Browse file, or View archive (as appropriate).
  59. ;            <Button-2>     CD to parent directory.
  60.  
  61. ;            <Button-3>     1) Return to 4FILES from a utility (e.g. broswe).
  62. ;                           2) Cancel cutting, end FLR mode, clear message, etc.
  63.  
  64. ;            <Buttons-12>   Page-Up.  (Nice because motion discrete/predictable)
  65. ;            <Buttons-23>   Page-Down.
  66.  
  67. ;            <Buttons-13>   Toggle between Attributes & Times for files.
  68.  
  69. ;            <Buttons-123>  Cut Text.
  70.  
  71. ;            <Movement>     Moves cursor or highlight bar.
  72.  
  73.  
  74. ; INSTALLATION INSTRUCTIONS:
  75. ; =========================
  76. ;   0) The following programs, referenced below, are included in the software
  77. ;      which came with your mouse: NEWMENU, NEWCLICK, MOUSE, and LOGIMENU.
  78. ;      CLICK.EXE is compiled from CLICK.SRC by NEWCLICK.
  79.  
  80. ;   1) Place 4FILES.DEF (this file) and 4FILES.MNU in your mouse software
  81. ;      directory. If you modify this source file, re-compile it with
  82. ;      NEWMENU.EXE.
  83.  
  84. ;   2) CLICK.EXE is used to automatically load an .MNU file when its matching
  85. ;      program is called.  To add 4FILES support to CLICK.EXE, use CLICKADD.COM
  86. ;      or your text editor to add this line to the file CLICK.SRC:
  87.  
  88. ;                              4FILES menu 3buttons
  89.  
  90. ;      Then compile CLICK.SRC to CLICK.EXE by running NEWCLICK.EXE.  If you
  91. ;      change the name of 4FILES or call it via a .BAT or .BTM file or an alias,
  92. ;      add similar lines for those names as well.
  93.  
  94. ;   3) For CLICK to provide its outmatic mouse setup, MOUSE.COM, LOGIMENU.COM
  95. ;      and CLICK.EXE must be loaded (in that order) after your path and
  96. ;      environment have been set and before any other programs are run.  If
  97. ;      CLICK has been run and if the above text has been added to CLICK.EXE,
  98. ;      whenever 4FILES is run the mouse controls coded below will become active.
  99.  
  100. ;      Otherwise you will have to load 4FILES manually by typing "LOGIMENU
  101. ;      4FILES" (or whatever name you use to load 4FILES) or putting that in a
  102. ;      .BAT, .BTM, or alias which loads 4FILES.
  103.  
  104. ;   4) If you have an .MNU file for an auxilliary program run from 4FILES, and
  105. ;      if that program has been listed in CLICK.EXE, when you return from the
  106. ;      program to 4FILES some or all of the below code will be disabled.  Also,
  107. ;      the mouse button may give unexpected results.  Only one .MNU file can be
  108. ;      active at a time, and the one for the auxiliary program will replace the
  109. ;      one for 4FILES.  This problem can be avoided by being sure the auxiliary
  110. ;      program is not listed in CLICK.SRC.
  111.  
  112. ;   5) Auxiliary programs which reset the mouse and handle it internally can
  113. ;      cause a similar problem, since they will wrest control away from
  114. ;      LOGIMENU.  A solution to this is to disable the internal mouse support
  115. ;      and create a LOGIMENU program which has mouse button assignments
  116. ;      compatible with the ones you use for 4FILES.  This would only be
  117. ;      necessary if you also use that program as a stand alone program (called
  118. ;      from the command line) and need mouse support for it in that case.
  119.  
  120. ;   6) You will find that if the mouse is not reset by them, the 4FILES mouse
  121. ;      functions are operational in your auxiliary programs.
  122.  
  123.  
  124. ;                ╔════════════════════════════════════════════╗
  125. ;                ║                                            ║
  126. ;                ║          S O U R C E    C O D E            ║
  127. ;                ║                                            ║
  128. ;════════════════╩════════════════════════════════════════════╩════════════════
  129.  
  130. BEGIN   BUTTON_1, BUTTON_2, BUTTON_3, LEFT, RIGHT, UP, DOWN, 35, 30
  131. ;                   (Buttons are numbered left to right.)
  132.  
  133. LEFT:     type  0, 75   ; Left Arrow
  134. RIGHT:    type  0, 77   ; Right Arrow
  135. UP:       type  0, 72   ; Up Arrow
  136. DOWN:     type  0, 80   ; Down Arrow
  137.  
  138. BUTTON_1: type  0, 161  ;Mimicks <G-> key,  i.e. CD to parent directory
  139. BUTTON_2: type  0, 160  ;Mimicks <G+>.
  140. BUTTON_3: type  ESC     ;Mimicks <ESC> key.
  141.  
  142. CHORDS  CHORD_12, CHORD_13, CHORD_23, CHORD_123  ;Defines multi-button commands.
  143.  
  144. CHORD_12:     type  0, 73   ;Page up
  145. CHORD_23:     type  0, 81   ;Page dn
  146. CHORD_13:     type  0, 15   ;Toggle file ATTRIBUTES/TIMES.
  147. CHORD_123:    type  0, 67   ;Activate CUT TEXT.